let fs=require("fs");

/*创建一个可读流*/
var readerStream=fs.createReadStream("package.json");

/*创建一个可写流*/
var writerStream=fs.createWriteStream("package-ouput.txt");

/*管道读写操作*/
/*读取package.json文件内容，并将内容写入到package-output.txt文件中*/
readerStream.pipe(writerStream);

console.log("程序执行完毕")